package org.example;

import java.util.Scanner;

public class test04 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个四位数:");
        int a = sc.nextInt();
        int b = a%10;
        int c = a/10%10;
        int d = a/10/10%10;
        int e = a/10/10/10%10;
        System.out.println("个位为:" + b);
        System.out.println("十位为:" + c);
        System.out.println("百位为:" + d);
        System.out.println("千位为:" + e);
    }

}
